package com.contact.util.util.filters;

public enum ValidDateRange {
        ALL,
        TODAY(0,0),
        TODAYANDYESTERDAY(0,1),
        YESTERDAY(1,0), //prior day..
        TWODAYSAGO(2,0),
        PRIOR(2, Integer.MIN_VALUE),  //every thing before yesterday
        PRIORTOTWODAYSAGO(3, Integer.MIN_VALUE),  //every thing before two days ago
        ONE_WEEK(0,7), //one week ago
        TWO_WEEKS(7, 7), //two weeks ago
        OVER_TWO_WEEKS(14, Integer.MIN_VALUE);  // over two weeks

        int toDays = -1;
        int deltaDays = -1;
        
        ValidDateRange() {
            this(Integer.MIN_VALUE,Integer.MIN_VALUE);
        }
        
        ValidDateRange(int toDays, int deltaDays) {
            this.toDays = toDays;
            this.deltaDays = deltaDays;
        }
        
        public int getToDays() {
            return toDays;
        }

        public int getDeltaDays() {
            return deltaDays;
        }

}
